package nc.bs.pub.action;
import nc.bs.framework.common.NCLocator;
import nc.vo.pub.BusinessException;
import nccloud.commons.lang.StringUtils;
import nc.vo.pub.compiler.PfParameterVO;
import nc.vo.uap.pf.PFBusinessException;
import nc.codeplatform.framework.service.AbstractPfScriptAction;
import nc.vo.arap.mullevelpay.AggMulLevelPayVO;
import nc.itf.arap.mullevelpay.mullevelpayvo.IMulLevelPayVOService;

public class N_ZH01_SAVEBASE extends AbstractPfScriptAction<AggMulLevelPayVO>{
	
	public N_ZH01_SAVEBASE(){
		super();
	}
	
	@Override
	protected AggMulLevelPayVO[] process(PfParameterVO paraVO) throws BusinessException {
		try {
			IMulLevelPayVOService service = NCLocator.getInstance().lookup(IMulLevelPayVOService.class);
			AggMulLevelPayVO[] vos = (AggMulLevelPayVO[])this.getVos();
			
			
			vos = service.callbackSAVEBASE(vos);
			
			return vos;
			
		}catch(Exception ex) {
			if (ex instanceof BusinessException) {
		        throw (BusinessException) ex;
		      }
	        throw new PFBusinessException(ex.getMessage(), ex);
		}
	}
	
}